import request from '@/utils/request'

// 查询guankan jilu列表
export function listWatch(query) {
  return request({
    url: '/live/watch/list',
    method: 'get',
    params: query
  })
}

// 查询guankan jilu详细
export function getWatch(watchId) {
  return request({
    url: '/live/watch/getWatchById/' + watchId,
    method: 'get'
  })
}

// 新增guankan jilu
export function addWatch(data) {
  return request({
    url: '/live/watch/add',
    method: 'post',
    data: data
  })
}

// 修改guankan jilu
export function updateWatch(data) {
  return request({
    url: '/live/watch/update',
    method: 'put',
    data: data
  })
}

// 删除guankan jilu
export function delWatch(watchId) {
  return request({
    url: '/live/watch/delById/' + watchId,
    method: 'delete'
  })
}
